<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>事件绑定方法</title>
	<script src="../../../课件/jquery-2.1.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script>
		$(function(){
			var $btnSend = $('#btnSend');
			var $input = $btnSend.prev();

			/*$input.change(function(){
				console.log('值改变');
			});

			$btnSend.click(function(){

			});*/
			$btnSend.on('click',function(){
				var _val = $input.val();
				console.log(_val);
			})
		});
	</script>
</head>
<body>
	<input type="text"><button id="btnSend">发送</button>
</body>
</html>